package com.store.app.http;

import android.os.Parcel;
import android.os.Parcelable;

public class ImageInfo implements Parcelable{
    private int id;
    private String data;
    private long size;
    private String displayName;
    private String mimeType;
    private String title;
    private long dateAdded;
    private long dateModified;
    private String description;
    private String picasaId;
    private int isprivate;
    private double latitude;
    private double longitude;
    private int datetaken;
    private int orientation;
    private int miniThumbMagic;
    private String bucketId;
    private String bucketDisplayName;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getData() {
        return data;
    }

    public void setData(String data) {
        this.data = data;
    }

    public long getSize() {
        return size;
    }

    public void setSize(long size) {
        this.size = size;
    }

    public String getDisplayName() {
        return displayName;
    }

    public void setDisplayName(String displayName) {
        this.displayName = displayName;
    }

    public String getMimeType() {
        return mimeType;
    }

    public void setMimeType(String mimeType) {
        this.mimeType = mimeType;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public long getDateAdded() {
        return dateAdded;
    }

    public void setDateAdded(long dateAdded) {
        this.dateAdded = dateAdded;
    }

    public long getDateModified() {
        return dateModified;
    }

    public void setDateModified(long dateModified) {
        this.dateModified = dateModified;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getPicasaId() {
        return picasaId;
    }

    public void setPicasaId(String picasaId) {
        this.picasaId = picasaId;
    }

    public int getIsprivate() {
        return isprivate;
    }

    public void setIsprivate(int isprivate) {
        this.isprivate = isprivate;
    }

    public double getLatitude() {
        return latitude;
    }

    public void setLatitude(double latitude) {
        this.latitude = latitude;
    }

    public double getLongitude() {
        return longitude;
    }

    public void setLongitude(double longitude) {
        this.longitude = longitude;
    }

    public int getDatetaken() {
        return datetaken;
    }

    public void setDatetaken(int datetaken) {
        this.datetaken = datetaken;
    }

    public int getOrientation() {
        return orientation;
    }

    public void setOrientation(int orientation) {
        this.orientation = orientation;
    }

    public int getMiniThumbMagic() {
        return miniThumbMagic;
    }

    public void setMiniThumbMagic(int miniThumbMagic) {
        this.miniThumbMagic = miniThumbMagic;
    }

    public String getBucketId() {
        return bucketId;
    }

    public void setBucketId(String bucketId) {
        this.bucketId = bucketId;
    }

    public String getBucketDisplayName() {
        return bucketDisplayName;
    }

    public void setBucketDisplayName(String bucketDisplayName) {
        this.bucketDisplayName = bucketDisplayName;
    }

    public ImageInfo(){

    }

    public int describeContents() {
        return 0;
    }

    public void writeToParcel( Parcel out, int flags) {
        out.writeInt(id);
        out.writeString(data);
        out.writeLong(size);
        out.writeString(displayName);
        out.writeString(mimeType);
        out.writeString(title);
        out.writeLong(dateAdded);
        out.writeLong(dateModified);
        out.writeString(description);
        out.writeString(picasaId);
        out.writeInt(isprivate);
        out.writeDouble(latitude);
        out.writeDouble(longitude);
        out.writeInt(datetaken);
        out.writeInt(orientation);
        out.writeInt(miniThumbMagic);
        out.writeString(bucketId);
        out.writeString(bucketDisplayName);
    }

    public static final Creator<ImageInfo> CREATOR = new Creator<ImageInfo>() {

        public ImageInfo createFromParcel( Parcel in) {
            return new ImageInfo(in);
        }

        public ImageInfo[] newArray(int size) {
            return new ImageInfo[size];
        }
    };

    private ImageInfo( Parcel in) {
        id = in.readInt();
        data = in.readString();
        size = in.readLong();
        displayName = in.readString();
        mimeType = in.readString();
        title = in.readString();
        dateAdded = in.readLong();
        dateModified = in.readLong();
        description = in.readString();
        picasaId = in.readString();
        isprivate = in.readInt();
        latitude = in.readDouble();
        longitude = in.readDouble();
        datetaken = in.readInt();
        orientation = in.readInt();
        miniThumbMagic =in.readInt();
        bucketId = in.readString();
        bucketDisplayName = in.readString();
    }
}
